(function($){
    var GETCLASSES = 'http://imoocnote.calfnote.com/inter/getClasses.php';

    $.getJSON(GETCLASSES,{curPage: 1},function(data){
        console.log(data);
        var t = $('#class-template').html(),
            f = Handlebars.compile(t);
            h = f(data.data);
            $('#classes').html(h);
    })
})(jQuery);